<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
</head>
<body>
     <form method="POST" action="upload" enctype="multipart/form-data">
         {% csrf_token %}
        <input type="file" name="img">
        <button type="submit">上传</button>
    </form>
</body>
</html>